package com.egao.common.publicly;

import com.egao.common.core.web.JsonResult;
import com.egao.common.publicly.service.PubliclyLayoutService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pyx
 * 网页
 */
@Api(tags = "页面")
@RestController
@RequestMapping("${api}")
public class PubliclyLayoutController {
    @Autowired
    private PubliclyLayoutService publiclyLayoutService;

    @ApiOperation("页脚")
    @GetMapping("/publicly/layout/footer")
    public JsonResult footer(){
        return JsonResult.ok().setData(publiclyLayoutService.footer());
    }
}
